
import glob
import sys
from pepe.p_utils.encd import main as m

if __name__ == "__main__":
    ''' '''
    if  len(sys.argv) == 2:
        for f in glob.glob(sys.argv[1]):
            m( inpFile=f, inpEncoding='utf-16', outEncoding='cp1250'
             , outFileAppendix='', outFilePrefix='cp1250_')
    elif  len(sys.argv) == 1:
        print 'Syntax: recode_utf16_cp1250 <file(s) mask>'



